<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Sample Control Register Enums</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sar__sample__ctrl__register__enums.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">Sample Control Register Enums<div class="ingroups"><a class="el" href="group__group__sar.html">SAR          (SAR ADC Subsystem)</a> &raquo; <a class="el" href="group__group__sar__enums.html">Enumerated Types</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>This set of enumerations are used in configuring the SAR SAMPLE_CTRL register. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaa4ffb0ad77de3d0bdf85bfbc713218f6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gaa4ffb0ad77de3d0bdf85bfbc713218f6">cy_en_sar_sample_ctrl_result_align_t</a> { <br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaa4ffb0ad77de3d0bdf85bfbc713218f6a0dd014f3232484624080ff52d418c91e">CY_SAR_RIGHT_ALIGN</a> = 0UL &lt;&lt; SAR_SAMPLE_CTRL_LEFT_ALIGN_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaa4ffb0ad77de3d0bdf85bfbc713218f6a8c732f0a5a942878a82fcdbadcea7045">CY_SAR_LEFT_ALIGN</a> = 1UL &lt;&lt; SAR_SAMPLE_CTRL_LEFT_ALIGN_Pos
<br />
 }<tr class="memdesc:gaa4ffb0ad77de3d0bdf85bfbc713218f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure result alignment, either left or right aligned.  <a href="group__group__sar__sample__ctrl__register__enums.html#gaa4ffb0ad77de3d0bdf85bfbc713218f6">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gaa4ffb0ad77de3d0bdf85bfbc713218f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8919e435c53bfc20a8f26530e3ba7270"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ga8919e435c53bfc20a8f26530e3ba7270">cy_en_sar_sample_ctrl_single_ended_format_t</a> { <br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga8919e435c53bfc20a8f26530e3ba7270ab3861e8c8a8909994bdd574ebb04fa64">CY_SAR_SINGLE_ENDED_UNSIGNED</a> = 0UL &lt;&lt; SAR_SAMPLE_CTRL_SINGLE_ENDED_SIGNED_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga8919e435c53bfc20a8f26530e3ba7270ad125b75e6802479d6a5d819b39e78223">CY_SAR_SINGLE_ENDED_SIGNED</a> = 1UL &lt;&lt; SAR_SAMPLE_CTRL_SINGLE_ENDED_SIGNED_Pos
<br />
 }<tr class="memdesc:ga8919e435c53bfc20a8f26530e3ba7270"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure format, signed or unsigned, of single-ended channels.  <a href="group__group__sar__sample__ctrl__register__enums.html#ga8919e435c53bfc20a8f26530e3ba7270">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga8919e435c53bfc20a8f26530e3ba7270"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2d4acecaee4c010ea2e553171675a5b6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ga2d4acecaee4c010ea2e553171675a5b6">cy_en_sar_sample_ctrl_differential_format_t</a> { <br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga2d4acecaee4c010ea2e553171675a5b6a9d98011d3534acbffe69581361caecc6">CY_SAR_DIFFERENTIAL_UNSIGNED</a> = 0UL &lt;&lt; SAR_SAMPLE_CTRL_DIFFERENTIAL_SIGNED_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga2d4acecaee4c010ea2e553171675a5b6ae37e82d9c8fb9e9fbd29f35ca9f76573">CY_SAR_DIFFERENTIAL_SIGNED</a> = 1UL &lt;&lt; SAR_SAMPLE_CTRL_DIFFERENTIAL_SIGNED_Pos
<br />
 }<tr class="memdesc:ga2d4acecaee4c010ea2e553171675a5b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure format, signed or unsigned, of differential channels.  <a href="group__group__sar__sample__ctrl__register__enums.html#ga2d4acecaee4c010ea2e553171675a5b6">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga2d4acecaee4c010ea2e553171675a5b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaed912a3edfab12b4ebea94fedf289ecf"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gaed912a3edfab12b4ebea94fedf289ecf">cy_en_sar_sample_ctrl_avg_cnt_t</a> { <br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaed912a3edfab12b4ebea94fedf289ecfa73a53b80105c99cdf5bb81cb4754612b">CY_SAR_AVG_CNT_2</a> = 0UL &lt;&lt; SAR_SAMPLE_CTRL_AVG_CNT_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaed912a3edfab12b4ebea94fedf289ecfa48e1e031e90721d806c21744c44a4790">CY_SAR_AVG_CNT_4</a> = 1UL &lt;&lt; SAR_SAMPLE_CTRL_AVG_CNT_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaed912a3edfab12b4ebea94fedf289ecfa0f4902d7434267911198f50aa41847d9">CY_SAR_AVG_CNT_8</a> = 2UL &lt;&lt; SAR_SAMPLE_CTRL_AVG_CNT_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaed912a3edfab12b4ebea94fedf289ecfa51a7182a3b7486d9e05eb4b34ab80b86">CY_SAR_AVG_CNT_16</a> = 3UL &lt;&lt; SAR_SAMPLE_CTRL_AVG_CNT_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaed912a3edfab12b4ebea94fedf289ecfaaa70184ca2980c495bc5d2cab45b3067">CY_SAR_AVG_CNT_32</a> = 4UL &lt;&lt; SAR_SAMPLE_CTRL_AVG_CNT_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaed912a3edfab12b4ebea94fedf289ecfa3f789fdae0b0f4e48d67a5089baeace4">CY_SAR_AVG_CNT_64</a> = 5UL &lt;&lt; SAR_SAMPLE_CTRL_AVG_CNT_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaed912a3edfab12b4ebea94fedf289ecfabc474cf397abf63d7d69b9f5e5a65f58">CY_SAR_AVG_CNT_128</a> = 6UL &lt;&lt; SAR_SAMPLE_CTRL_AVG_CNT_Pos, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaed912a3edfab12b4ebea94fedf289ecfabdae96477f89a03e9279fc84a9ba1170">CY_SAR_AVG_CNT_256</a> = 7UL &lt;&lt; SAR_SAMPLE_CTRL_AVG_CNT_Pos
<br />
 }<tr class="memdesc:gaed912a3edfab12b4ebea94fedf289ecf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure number of samples for averaging.  <a href="group__group__sar__sample__ctrl__register__enums.html#gaed912a3edfab12b4ebea94fedf289ecf">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gaed912a3edfab12b4ebea94fedf289ecf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9632ebe875d036e34a15d7c8df57e331"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ga9632ebe875d036e34a15d7c8df57e331">cy_en_sar_sample_ctrl_avg_mode_t</a> { <br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga9632ebe875d036e34a15d7c8df57e331a91a5fad5906a200940bbfbf15ef08868">CY_SAR_AVG_MODE_SEQUENTIAL_ACCUM</a> = 0UL, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga9632ebe875d036e34a15d7c8df57e331ade22974fa0104308e9484cc606842b2d">CY_SAR_AVG_MODE_SEQUENTIAL_FIXED</a> = SAR_SAMPLE_CTRL_AVG_SHIFT_Msk, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga9632ebe875d036e34a15d7c8df57e331a89d83498d39e5e049cb2b33c18145095">CY_SAR_AVG_MODE_INTERLEAVED</a> = SAR_SAMPLE_CTRL_AVG_MODE_Msk
<br />
 }<tr class="memdesc:ga9632ebe875d036e34a15d7c8df57e331"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure the averaging mode.  <a href="group__group__sar__sample__ctrl__register__enums.html#ga9632ebe875d036e34a15d7c8df57e331">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga9632ebe875d036e34a15d7c8df57e331"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga62ecb4e368dcea23cfbfc41bd0497fc6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ga62ecb4e368dcea23cfbfc41bd0497fc6">cy_en_sar_sample_ctrl_trigger_mode_t</a> { <br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga62ecb4e368dcea23cfbfc41bd0497fc6a55a26ca93dcfd68c8b9b120416bc1b32">CY_SAR_TRIGGER_MODE_FW_ONLY</a> = 0UL, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga62ecb4e368dcea23cfbfc41bd0497fc6a7eed8528ba801da55b7727c170d361e1">CY_SAR_TRIGGER_MODE_FW_AND_HWEDGE</a> = SAR_SAMPLE_CTRL_DSI_TRIGGER_EN_Msk, 
<br />
&#160;&#160;<a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gga62ecb4e368dcea23cfbfc41bd0497fc6ac7d137ec50152f166656503877638943">CY_SAR_TRIGGER_MODE_FW_AND_HWLEVEL</a> = SAR_SAMPLE_CTRL_DSI_TRIGGER_EN_Msk | SAR_SAMPLE_CTRL_DSI_TRIGGER_LEVEL_Msk
<br />
 }<tr class="memdesc:ga62ecb4e368dcea23cfbfc41bd0497fc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure the trigger mode.  <a href="group__group__sar__sample__ctrl__register__enums.html#ga62ecb4e368dcea23cfbfc41bd0497fc6">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga62ecb4e368dcea23cfbfc41bd0497fc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gaa4ffb0ad77de3d0bdf85bfbc713218f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa4ffb0ad77de3d0bdf85bfbc713218f6">&#9670;&nbsp;</a></span>cy_en_sar_sample_ctrl_result_align_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gaa4ffb0ad77de3d0bdf85bfbc713218f6">cy_en_sar_sample_ctrl_result_align_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure result alignment, either left or right aligned. </p>
<dl class="section note"><dt>Note</dt><dd>Averaging always uses right alignment. If the <a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ggaa4ffb0ad77de3d0bdf85bfbc713218f6a8c732f0a5a942878a82fcdbadcea7045">CY_SAR_LEFT_ALIGN</a> is selected with averaging enabled, it is ignored.</dd>
<dd>
The voltage conversion functions (<a class="el" href="group__group__sar__functions__countsto.html#gaf9e34e8b68020602396686ec699314a1">Cy_SAR_CountsTo_Volts</a>, <a class="el" href="group__group__sar__functions__countsto.html#ga8f1189056459a76c4b9f9917dc3a9e6e">Cy_SAR_CountsTo_mVolts</a>, <a class="el" href="group__group__sar__functions__countsto.html#ga0950546e50604fc6daa33b2bdb155e5d">Cy_SAR_CountsTo_uVolts</a>) are only valid for right alignment. </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaa4ffb0ad77de3d0bdf85bfbc713218f6a0dd014f3232484624080ff52d418c91e"></a>CY_SAR_RIGHT_ALIGN&#160;</td><td class="fielddoc"><p>Right align result data to bits [11:0] with sign extension to 16 bits if channel is signed. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa4ffb0ad77de3d0bdf85bfbc713218f6a8c732f0a5a942878a82fcdbadcea7045"></a>CY_SAR_LEFT_ALIGN&#160;</td><td class="fielddoc"><p>Left align result data to bits [15:4]. </p>
</td></tr>
</table>

</div>
</div>
<a id="ga8919e435c53bfc20a8f26530e3ba7270"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8919e435c53bfc20a8f26530e3ba7270">&#9670;&nbsp;</a></span>cy_en_sar_sample_ctrl_single_ended_format_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ga8919e435c53bfc20a8f26530e3ba7270">cy_en_sar_sample_ctrl_single_ended_format_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure format, signed or unsigned, of single-ended channels. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga8919e435c53bfc20a8f26530e3ba7270ab3861e8c8a8909994bdd574ebb04fa64"></a>CY_SAR_SINGLE_ENDED_UNSIGNED&#160;</td><td class="fielddoc"><p>Result data for single-ended channels is unsigned. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8919e435c53bfc20a8f26530e3ba7270ad125b75e6802479d6a5d819b39e78223"></a>CY_SAR_SINGLE_ENDED_SIGNED&#160;</td><td class="fielddoc"><p>Result data for single-ended channels is signed. </p>
</td></tr>
</table>

</div>
</div>
<a id="ga2d4acecaee4c010ea2e553171675a5b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2d4acecaee4c010ea2e553171675a5b6">&#9670;&nbsp;</a></span>cy_en_sar_sample_ctrl_differential_format_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ga2d4acecaee4c010ea2e553171675a5b6">cy_en_sar_sample_ctrl_differential_format_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure format, signed or unsigned, of differential channels. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga2d4acecaee4c010ea2e553171675a5b6a9d98011d3534acbffe69581361caecc6"></a>CY_SAR_DIFFERENTIAL_UNSIGNED&#160;</td><td class="fielddoc"><p>Result data for differential channels is unsigned. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2d4acecaee4c010ea2e553171675a5b6ae37e82d9c8fb9e9fbd29f35ca9f76573"></a>CY_SAR_DIFFERENTIAL_SIGNED&#160;</td><td class="fielddoc"><p>Result data for differential channels is signed. </p>
</td></tr>
</table>

</div>
</div>
<a id="gaed912a3edfab12b4ebea94fedf289ecf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaed912a3edfab12b4ebea94fedf289ecf">&#9670;&nbsp;</a></span>cy_en_sar_sample_ctrl_avg_cnt_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__group__sar__sample__ctrl__register__enums.html#gaed912a3edfab12b4ebea94fedf289ecf">cy_en_sar_sample_ctrl_avg_cnt_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure number of samples for averaging. </p>
<p>This applies only to channels with averaging enabled. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaed912a3edfab12b4ebea94fedf289ecfa73a53b80105c99cdf5bb81cb4754612b"></a>CY_SAR_AVG_CNT_2&#160;</td><td class="fielddoc"><p>Set samples averaged to 2. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaed912a3edfab12b4ebea94fedf289ecfa48e1e031e90721d806c21744c44a4790"></a>CY_SAR_AVG_CNT_4&#160;</td><td class="fielddoc"><p>Set samples averaged to 4. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaed912a3edfab12b4ebea94fedf289ecfa0f4902d7434267911198f50aa41847d9"></a>CY_SAR_AVG_CNT_8&#160;</td><td class="fielddoc"><p>Set samples averaged to 8. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaed912a3edfab12b4ebea94fedf289ecfa51a7182a3b7486d9e05eb4b34ab80b86"></a>CY_SAR_AVG_CNT_16&#160;</td><td class="fielddoc"><p>Set samples averaged to 16. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaed912a3edfab12b4ebea94fedf289ecfaaa70184ca2980c495bc5d2cab45b3067"></a>CY_SAR_AVG_CNT_32&#160;</td><td class="fielddoc"><p>Set samples averaged to 32. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaed912a3edfab12b4ebea94fedf289ecfa3f789fdae0b0f4e48d67a5089baeace4"></a>CY_SAR_AVG_CNT_64&#160;</td><td class="fielddoc"><p>Set samples averaged to 64. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaed912a3edfab12b4ebea94fedf289ecfabc474cf397abf63d7d69b9f5e5a65f58"></a>CY_SAR_AVG_CNT_128&#160;</td><td class="fielddoc"><p>Set samples averaged to 128. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaed912a3edfab12b4ebea94fedf289ecfabdae96477f89a03e9279fc84a9ba1170"></a>CY_SAR_AVG_CNT_256&#160;</td><td class="fielddoc"><p>Set samples averaged to 256. </p>
</td></tr>
</table>

</div>
</div>
<a id="ga9632ebe875d036e34a15d7c8df57e331"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9632ebe875d036e34a15d7c8df57e331">&#9670;&nbsp;</a></span>cy_en_sar_sample_ctrl_avg_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ga9632ebe875d036e34a15d7c8df57e331">cy_en_sar_sample_ctrl_avg_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure the averaging mode. </p>
<ul>
<li>Sequential accumulate and dump: a channel will be sampled back to back. The result is added to a running sum in a 20-bit register. At the end of the scan, the accumulated value is shifted right to fit into 16 bits and stored into the CHAN_RESULT register.</li>
<li>Sequential fixed: a channel will be sampled back to back. The result is added to a running sum in a 20-bit register. At the end of the scan, the accumulated value is shifted right to fit into 12 bits and stored into the CHAN_RESULT register.</li>
<li>Interleaved: a channel will be sampled once per scan. The result is added to a running sum in a 16-bit register. In the scan where the final averaging count is reached, the accumulated value is shifted right to fit into 12 bits and stored into the CHAN_RESULT register. In all other scans, the CHAN_RESULT will have an invalid result. In interleaved mode, make sure that the averaging count is low enough to ensure that the intermediate value does not exceed 16 bits, that is averaging count is 16 or less. Otherwise, the MSBs will be lost. In the special case that averaging is enabled for all enabled channels and interleaved mode is used, the interrupt frequency will be reduced by a factor of the number of samples averaged. </li>
</ul>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga9632ebe875d036e34a15d7c8df57e331a91a5fad5906a200940bbfbf15ef08868"></a>CY_SAR_AVG_MODE_SEQUENTIAL_ACCUM&#160;</td><td class="fielddoc"><p>Set mode to sequential accumulate and dump. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga9632ebe875d036e34a15d7c8df57e331ade22974fa0104308e9484cc606842b2d"></a>CY_SAR_AVG_MODE_SEQUENTIAL_FIXED&#160;</td><td class="fielddoc"><p>Set mode to sequential 12-bit fixed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga9632ebe875d036e34a15d7c8df57e331a89d83498d39e5e049cb2b33c18145095"></a>CY_SAR_AVG_MODE_INTERLEAVED&#160;</td><td class="fielddoc"><p>Set mode to interleaved. </p>
<p>Number of samples per scan must be 16 or less. </p>
</td></tr>
</table>

</div>
</div>
<a id="ga62ecb4e368dcea23cfbfc41bd0497fc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga62ecb4e368dcea23cfbfc41bd0497fc6">&#9670;&nbsp;</a></span>cy_en_sar_sample_ctrl_trigger_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__group__sar__sample__ctrl__register__enums.html#ga62ecb4e368dcea23cfbfc41bd0497fc6">cy_en_sar_sample_ctrl_trigger_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure the trigger mode. </p>
<p>Firmware triggering is always enabled and can be single shot or continuous. Additionally, hardware triggering can be enabled with the option to be edge or level sensitive. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga62ecb4e368dcea23cfbfc41bd0497fc6a55a26ca93dcfd68c8b9b120416bc1b32"></a>CY_SAR_TRIGGER_MODE_FW_ONLY&#160;</td><td class="fielddoc"><p>Firmware trigger only, disable hardware trigger. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga62ecb4e368dcea23cfbfc41bd0497fc6a7eed8528ba801da55b7727c170d361e1"></a>CY_SAR_TRIGGER_MODE_FW_AND_HWEDGE&#160;</td><td class="fielddoc"><p>Enable edge sensitive hardware trigger. </p>
<p>Each rising edge will trigger a single scan. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga62ecb4e368dcea23cfbfc41bd0497fc6ac7d137ec50152f166656503877638943"></a>CY_SAR_TRIGGER_MODE_FW_AND_HWLEVEL&#160;</td><td class="fielddoc"><p>Enable level sensitive hardware trigger. </p>
<p>The SAR will continuously scan while the trigger signal is high. </p>
</td></tr>
</table>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
